home *** CD-ROM | disk | FTP | other *** search
/ Strategy Challenges Collection / Strategy Challenges Collection.iso / pc / demo / demodata / menu.dxr / 00263.ls < prev    next >
Encoding:
Text File  |  1996-10-02  |  1.2 KB  |  58 lines

  1. on enterFrame
  2.   global gBeenThere, gVoiceFlag
  3.   if gBeenThere = 0 then
  4.     if gVoiceFlag = 0 then
  5.       puppetSound("SubMain.aif")
  6.       set gVoiceFlag to 1
  7.     end if
  8.     set gBeenThere to 1
  9.   end if
  10. end
  11.  
  12. on exitFrame
  13.   timeOutCheck()
  14.   Rollovers()
  15.   go(the frame)
  16. end
  17.  
  18. on Rollovers
  19.   global gTT1, gTT2, gTT3
  20.   if the mouseDown then
  21.     exit
  22.   end if
  23.   if rollOver(8) then
  24.     set the castNum of sprite 4 to the number of member "TThings1_Roll"
  25.     updateStage()
  26.     repeat while rollOver(8)
  27.       if the mouseDown then
  28.         exit
  29.       end if
  30.     end repeat
  31.     set the castNum of sprite 4 to gTT1
  32.     updateStage()
  33.   end if
  34.   if rollOver(9) then
  35.     set the castNum of sprite 5 to the number of member "TThings2_Roll"
  36.     updateStage()
  37.     repeat while rollOver(9)
  38.       if the mouseDown then
  39.         exit
  40.       end if
  41.     end repeat
  42.     set the castNum of sprite 5 to gTT2
  43.     updateStage()
  44.   end if
  45.   if rollOver(10) then
  46.     set the castNum of sprite 6 to the number of member "TThings3_Roll"
  47.     updateStage()
  48.     repeat while rollOver(10)
  49.       if the mouseDown then
  50.         exit
  51.       end if
  52.     end repeat
  53.     set the castNum of sprite 6 to gTT3
  54.     updateStage()
  55.   end if
  56.   updateStage()
  57. end
  58.